package com.zryc.shop.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 用户信息表
 * </p>
 *
 * @author xujiajun
 * @since 2022-10-17
 */
@TableName("customer_inf")
@ApiModel(value = "CustomerInf对象", description = "用户信息表")
public class CustomerInf implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("自增主键ID")
    @TableId(value = "customer_inf_id", type = IdType.AUTO)
    private Integer customerInfId;

    @ApiModelProperty("customer_login表的自增ID")
    private Integer customerId;

    @ApiModelProperty("用户真实姓名")
    private String customerName;

    @ApiModelProperty("证件类型：1 身份证，2 军官证，3 护照")
    private Byte identityCardType;

    @ApiModelProperty("证件号码")
    private String identityCardNo;

    @ApiModelProperty("手机号")
    private String mobilePhone;

    @ApiModelProperty("邮箱")
    private String customerEmail;

    @ApiModelProperty("性别")
    private String gender;

    @ApiModelProperty("用户积分")
    private Integer userPoint;

    @ApiModelProperty("注册时间")
    private LocalDateTime registerTime;

    @ApiModelProperty("会员生日")
    private LocalDateTime birthday;

    @ApiModelProperty("会员级别：1 普通会员，2 青铜，3白银，4黄金，5钻石")
    private Byte customerLevel;

    @ApiModelProperty("用户余额")
    private BigDecimal userMoney;

    public Integer getCustomerInfId() {
        return customerInfId;
    }

    public void setCustomerInfId(Integer customerInfId) {
        this.customerInfId = customerInfId;
    }

    public Integer getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Integer customerId) {
        this.customerId = customerId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public Byte getIdentityCardType() {
        return identityCardType;
    }

    public void setIdentityCardType(Byte identityCardType) {
        this.identityCardType = identityCardType;
    }

    public String getIdentityCardNo() {
        return identityCardNo;
    }

    public void setIdentityCardNo(String identityCardNo) {
        this.identityCardNo = identityCardNo;
    }

    public String getMobilePhone() {
        return mobilePhone;
    }

    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    public String getCustomerEmail() {
        return customerEmail;
    }

    public void setCustomerEmail(String customerEmail) {
        this.customerEmail = customerEmail;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public Integer getUserPoint() {
        return userPoint;
    }

    public void setUserPoint(Integer userPoint) {
        this.userPoint = userPoint;
    }

    public LocalDateTime getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(LocalDateTime registerTime) {
        this.registerTime = registerTime;
    }

    public LocalDateTime getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDateTime birthday) {
        this.birthday = birthday;
    }

    public Byte getCustomerLevel() {
        return customerLevel;
    }

    public void setCustomerLevel(Byte customerLevel) {
        this.customerLevel = customerLevel;
    }

    public BigDecimal getUserMoney() {
        return userMoney;
    }

    public void setUserMoney(BigDecimal userMoney) {
        this.userMoney = userMoney;
    }

    @Override
    public String toString() {
        return "CustomerInf{" +
            "customerInfId = " + customerInfId +
            ", customerId = " + customerId +
            ", customerName = " + customerName +
            ", identityCardType = " + identityCardType +
            ", identityCardNo = " + identityCardNo +
            ", mobilePhone = " + mobilePhone +
            ", customerEmail = " + customerEmail +
            ", gender = " + gender +
            ", userPoint = " + userPoint +
            ", registerTime = " + registerTime +
            ", birthday = " + birthday +
            ", customerLevel = " + customerLevel +
            ", userMoney = " + userMoney +
        "}";
    }
}
